From 7c7bed575409bef77296743009eb71ba513a586c Mon Sep 17 00:00:00 2001 From: "cl349@freefall.cl.cam.ac.uk" Date: Thu, 21 Oct 2004 13:47:32 +0000 Subject: [PATCH] bitkeeper revision 1.1159.1.254 (4177bdf4aXE2he9nGLsYIcckKPG2LA) Remove netbsd domain builder. --- tools/libxc/xc.h | 6 ------ tools/python/xen/lowlevel/xc/xc.c | 35 ------------------------------- 2 files changed, 41 deletions(-) diff --git a/tools/libxc/xc.h b/tools/libxc/xc.h index 803b768d81..e022feb7eb 100644 --- a/tools/libxc/xc.h +++ b/tools/libxc/xc.h @@ -92,12 +92,6 @@ int xc_linux_build(int xc_handle, unsigned int control_evtchn, unsigned long flags); -int xc_netbsd_build(int xc_handle, - u32 domid, - const char *image_name, - const char *cmdline, - unsigned int control_evtchn); - int xc_bvtsched_global_set(int xc_handle, unsigned long ctx_allow); diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index 69eadf205a..1e4c9af930 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -369,32 +369,6 @@ static PyObject *pyxc_linux_build(PyObject *self, return zero; } -static PyObject *pyxc_netbsd_build(PyObject *self, - PyObject *args, - PyObject *kwds) -{ - XcObject *xc = (XcObject *)self; - - u32 dom; - char *image, *ramdisk = NULL, *cmdline = ""; - int control_evtchn; - - static char *kwd_list[] = { "dom", "control_evtchn", - "image", "ramdisk", "cmdline", NULL }; - - if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iis|ssi", kwd_list, - &dom, &control_evtchn, - &image, &ramdisk, &cmdline) ) - return NULL; - - if ( xc_netbsd_build(xc->xc_handle, dom, image, - cmdline, control_evtchn) != 0 ) - return PyErr_SetFromErrno(xc_error); - - Py_INCREF(zero); - return zero; -} - static PyObject *pyxc_bvtsched_global_set(PyObject *self, PyObject *args, PyObject *kwds) @@ -940,15 +914,6 @@ static PyMethodDef pyxc_methods[] = { " cmdline [str, n/a]: Kernel parameters, if any.\n\n" "Returns: [int] 0 on success; -1 on error.\n" }, - { "netbsd_build", - (PyCFunction)pyxc_netbsd_build, - METH_VARARGS | METH_KEYWORDS, "\n" - "Build a new NetBSD guest OS.\n" - " dom [int]: Identifier of domain to build into.\n" - " image [str]: Name of kernel image file. May be gzipped.\n" - " cmdline [str, n/a]: Kernel parameters, if any.\n\n" - "Returns: [int] 0 on success; -1 on error.\n" }, - { "bvtsched_global_set", (PyCFunction)pyxc_bvtsched_global_set, METH_VARARGS | METH_KEYWORDS, "\n" -- 2.30.2